let defaultCity = '北京'
try {
    if (localStorage.city) {
        defaultCity = localStorage.city
    }
} catch (e) { }
//使用try catch 是防止某些用户关闭了本地存储或者使用隐身模式

export default {
    city: localStorage.city || '北京'
}